package com.leonzx.base.controller.userpermission;

import com.leonzx.base.controller.base.BaseController;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author:梁亮
 * @Description:
 * @Date: 2018/7/4 9:25
 */
@Controller
@RequestMapping("/userpermission/onlineuser")
public class OnlineUserController extends BaseController {
    /**
     * 静态模版所在路径前缀
     */
    private String prefix = "userpermission/onlineuser";

    @RequiresPermissions("/userpermission/onlineuser/list")
    @RequestMapping("/list")
    public String list() {
        SecurityUtils.getSubject().hasRole("1");
        return prefix + "/list";
    }
}
